package com.example.rest.utils;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @BelongsProject: RestTemplate
 * @BelongsPackage: com.example.rest.utils
 * @Author:hlzs1
 * @Description: RestTemplate的工具类
 * @CreateTime: 2023-02-28 09:05
 * @Version: 1.0
 */
@Configuration
public class RestTemplateUtils {

    @Bean("restTemplate")
    public RestTemplate RestTemplate(){
        return new RestTemplate();
    }
}
